package com.offdissys.common.core.constant;

/* *
 * @Author zhanghaiwen
 * @Description 响应格式enum
 * @Date 14:38 2020/1/9
 * @Param
 * @Version 6.1.1
 * @return
 */
public enum ResultEnum implements ResultEnumInterface{

    SUCCESS(200,"成功"),
    SYS_ERROR(500,"系统异常，请稍后重试");

    private Integer code;
    private String msg;
    ResultEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }
    @Override
    public Integer getCode() {
        return code;
    }
    @Override
    public String getMsg() {
        return msg;
    }
}
